﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

using CapaNegocio;
using Entidades;

namespace CapaPresentacion.Login
{
    public partial class Inicion : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            if (Session["Usuarios"]!=null)
            {
               
                Usuario u = (Usuario)Session["Usuarios"];
                lblUser.Text = u.IdUsario.ToString() + " " + u.Login + " " + u.Password + " " + u.IdEmpleado;
            }
            else
            {
                
                Response.Redirect("/Login/LoginUsuarios.aspx");
            }

           
            
        }

        protected void btnCerrarSesion_Click(object sender, ImageClickEventArgs e)
        {
            Session.Remove("Usuario");
            Response.Redirect("/Login/LoginUsuarios.aspx");
        }
    }
}